package com.zheng.hr.dao.model;

import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.zheng.common.base.BaseEntity;

/**
 * <p>
 * hr_personal_records 人事档案信息
 * </p>
 *
 * @author likun
 * @since 2018-04-19
 */
@TableName("hr_personal_records")
public class HrPersonalRecords extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户编号
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 岗位编号
     */
    @TableField("position_id")
    private Integer positionId;
    @TableField("organization_id")
    private Integer organizationId;
    /**
     * 姓名
     */
    private String realname;
    /**
     * 照片
     */
    private String avatar;
    /**
     * 工号
     */
    @TableField("job_number")
    private String jobNumber;
    /**
     * 英文名
     */
    private String ename;
    /**
     * 身份证
     */
    private String idcard;
    /**
     * 身份证正面照
     */
    @TableField("idcard_img1")
    private String idcardImg1;
    /**
     * 身份证反面照
     */
    @TableField("idcard_img2")
    private String idcardImg2;
    /**
     * 出生日期
     */
    private Date birthday;
    /**
     * 年龄
     */
    private Integer age;
    /**
     * 性别
     */
    private Integer gender;
    /**
     * 联系方式
     */
    private String phone;
    /**
     * 最高学历
     */
    private Integer education;
    /**
     * 学历类型
     */
    @TableField("education_type")
    private Integer educationType;
    /**
     * 毕业院校
     */
    private String university;
    /**
     * 所学专业
     */
    private String professional;
    /**
     * 政治面貌
     */
    private Integer political;
    /**
     * 毕业时间
     */
    @TableField("graduation_time")
    private Date graduationTime;
    /**
     * 入职时间
     */
    @TableField("joined_time")
    private Date joinedTime;
    /**
     * 转正日期
     */
    @TableField("positive_time")
    private Date positiveTime;
    /**
     * 是否签订合同
     */
    @TableField("is_signed")
    private Boolean isSigned;
    /**
     * 签订合同日期
     */
    @TableField("signed_time")
    private Date signedTime;
    /**
     * 是否在职
     */
    @TableField("is_inservice")
    private Boolean isInservice;
    /**
     * 离职日期
     */
    @TableField("desert_time")
    private Date desertTime;
    /**
     * 工龄
     */
    private Integer workage;
    /**
     * 是否见习
     */
    @TableField("is_probation")
    private Boolean isProbation;
    /**
     * 见习开始日期
     */
    @TableField("start_probation_time")
    private Date startProbationTime;
    /**
     * 见习结束日期
     */
    @TableField("end_probation_time")
    private Date endProbationTime;
    /**
     * 招聘渠道
     */
    private String channel;
    /**
     * 兼专职（0：专职；1：兼职）
     */
    @TableField("is_parttime")
    private Boolean isParttime;
    /**
     * 兼职类型
     */
    @TableField("parttime_type")
    private Integer parttimeType;
    /**
     * 档案编号
     */
    @TableField("archive_no")
    private String archiveNo;
    /**
     * 备注
     */
    private String remarks;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getPositionId() {
        return positionId;
    }

    public void setPositionId(Integer positionId) {
        this.positionId = positionId;
    }

    public Integer getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getIdcardImg1() {
        return idcardImg1;
    }

    public void setIdcardImg1(String idcardImg1) {
        this.idcardImg1 = idcardImg1;
    }

    public String getIdcardImg2() {
        return idcardImg2;
    }

    public void setIdcardImg2(String idcardImg2) {
        this.idcardImg2 = idcardImg2;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getEducation() {
        return education;
    }

    public void setEducation(Integer education) {
        this.education = education;
    }

    public Integer getEducationType() {
        return educationType;
    }

    public void setEducationType(Integer educationType) {
        this.educationType = educationType;
    }

    public String getUniversity() {
        return university;
    }

    public void setUniversity(String university) {
        this.university = university;
    }

    public String getProfessional() {
        return professional;
    }

    public void setProfessional(String professional) {
        this.professional = professional;
    }

    public Integer getPolitical() {
        return political;
    }

    public void setPolitical(Integer political) {
        this.political = political;
    }

    public Date getGraduationTime() {
        return graduationTime;
    }

    public void setGraduationTime(Date graduationTime) {
        this.graduationTime = graduationTime;
    }

    public Date getJoinedTime() {
        return joinedTime;
    }

    public void setJoinedTime(Date joinedTime) {
        this.joinedTime = joinedTime;
    }

    public Date getPositiveTime() {
        return positiveTime;
    }

    public void setPositiveTime(Date positiveTime) {
        this.positiveTime = positiveTime;
    }

    public Boolean getSigned() {
        return isSigned;
    }

    public void setSigned(Boolean isSigned) {
        this.isSigned = isSigned;
    }

    public Date getSignedTime() {
        return signedTime;
    }

    public void setSignedTime(Date signedTime) {
        this.signedTime = signedTime;
    }

    public Boolean getInservice() {
        return isInservice;
    }

    public void setInservice(Boolean isInservice) {
        this.isInservice = isInservice;
    }

    public Date getDesertTime() {
        return desertTime;
    }

    public void setDesertTime(Date desertTime) {
        this.desertTime = desertTime;
    }

    public Integer getWorkage() {
        return workage;
    }

    public void setWorkage(Integer workage) {
        this.workage = workage;
    }

    public Boolean getProbation() {
        return isProbation;
    }

    public void setProbation(Boolean isProbation) {
        this.isProbation = isProbation;
    }

    public Date getStartProbationTime() {
        return startProbationTime;
    }

    public void setStartProbationTime(Date startProbationTime) {
        this.startProbationTime = startProbationTime;
    }

    public Date getEndProbationTime() {
        return endProbationTime;
    }

    public void setEndProbationTime(Date endProbationTime) {
        this.endProbationTime = endProbationTime;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public Boolean getParttime() {
        return isParttime;
    }

    public void setParttime(Boolean isParttime) {
        this.isParttime = isParttime;
    }

    public Integer getParttimeType() {
        return parttimeType;
    }

    public void setParttimeType(Integer parttimeType) {
        this.parttimeType = parttimeType;
    }

    public String getArchiveNo() {
        return archiveNo;
    }

    public void setArchiveNo(String archiveNo) {
        this.archiveNo = archiveNo;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }

    @Override
    public String toString() {
        return "HrPersonalRecords{" +
                "id=" + id +
                ", userId=" + userId +
                ", positionId=" + positionId +
                ", organizationId=" + organizationId +
                ", realname=" + realname +
                ", avatar=" + avatar +
                ", jobNumber=" + jobNumber +
                ", ename=" + ename +
                ", idcard=" + idcard +
                ", idcardImg1=" + idcardImg1 +
                ", idcardImg2=" + idcardImg2 +
                ", birthday=" + birthday +
                ", age=" + age +
                ", gender=" + gender +
                ", phone=" + phone +
                ", education=" + education +
                ", educationType=" + educationType +
                ", university=" + university +
                ", professional=" + professional +
                ", political=" + political +
                ", graduationTime=" + graduationTime +
                ", joinedTime=" + joinedTime +
                ", positiveTime=" + positiveTime +
                ", isSigned=" + isSigned +
                ", signedTime=" + signedTime +
                ", isInservice=" + isInservice +
                ", desertTime=" + desertTime +
                ", workage=" + workage +
                ", isProbation=" + isProbation +
                ", startProbationTime=" + startProbationTime +
                ", endProbationTime=" + endProbationTime +
                ", channel=" + channel +
                ", isParttime=" + isParttime +
                ", parttimeType=" + parttimeType +
                ", archiveNo=" + archiveNo +
                ", remarks=" + remarks +
                ", ctime=" + ctime +
                "}";
    }
}
